|
|
|
|
OnDragDrop Method, SftTree Class |
Raises the DragDrop event.
Syntax SftTree Class (Softelvdm.SftTreeNET)
VB |
Protected Overrides Sub OnDragDrop( ByVal drgEvent As DragEventArgs ) |
C# |
protected override void OnDragDrop( DragEventArgs drgEvent ); |
C++ |
protected: virtual void OnDragDrop( DragEventArgs^ drgEvent ); |
drgEvent
The event data.
Comments
The OnDragDrop method raises the DragDrop event.
Raising an event invokes the event handler through a delegate.
The OnDragDrop method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.
When overriding OnDragDrop in a derived class, make sure to call the base class's OnDragDrop method so that registered delegates receive the event.